<%--
  Created by IntelliJ IDEA.
  User: dailyblue
  Date: 2024/1/21
  Time: 16:48
  To change this template use File | Settings | File Templates.
  错误页面是5-2,当当前页面出错时，跳转到5-2.jsp
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" errorPage="5-2.jsp" %>
<html>
<head>
    <title>exception对象</title>
</head>
<body>
5-1.jsp

<%
    // 产生一个异常
    int a = 9 / 0;
    out.print(a);
%>
</body>
</html>